<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="EditProductDefinitionBaseProperties.ascx.cs" Inherits="UCommerce.Web.UI.Settings.Definitions.EditProductDefinitionBaseProperties" %>

<%@ Register tagPrefix="commerce" tagName="ValidationSummary" src="../../Controls/ValidationSummaryDisplay.ascx" %>

<commerce:ValidationSummary ID="ValidationSummary1" runat="server" />
<div style="text-align: left;">
	<div class="propertyPane leftAligned">
		<div>
			<table style="width: 100%">
				<tr>
					<th style="width: 150px;">
						<asp:Localize runat="server" meta:resourceKey="Name" />
					</th>
					<td>
						<asp:TextBox runat="server" ID="NameTextBox" Text="<%# View.ProductDefinition.Name %>" CssClass="mediumWidth"/>
						<asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ControlToValidate="NameTextBox" Display="Static"
							Text="*" ErrorMessage='<%# GetLocalResourceObject("Name.Text") %>' CssClass="validator" />
						<asp:CustomValidator ID="CustomValidator1" runat="server" Text="*" ErrorMessage='<%# GetLocalResourceObject("Name.Text") %>' CssClass="validator" OnServerValidate="NameValidator_ServerValidate" />
					</td>
					<td>
					</td>
				</tr>
				<tr>
					<th style="width: 150px;">
						<asp:Localize runat="server" meta:resourceKey="ProductFamily" />
					</th>
					<td>
						<asp:CheckBox runat="server" ID="ProductFamilyCheckBox" Enabled="false" Checked="<%# View.ProductDefinition.IsProductFamily() %>" />
					</td>
				</tr>
				<tr>
					<th style="width: 150px;">
						<asp:Localize runat="server" meta:resourceKey="Description" />
					</th>
					<td>
						<asp:TextBox runat="server" ID="DescriptionTextBox" TextMode="MultiLine" CssClass="mediumWidth smallHeight" Text="<%# View.ProductDefinition.Description %>" />
					</td>
				</tr>
			</table>
		</div>
	</div>
</div>
